package org.project.single.pojo.dto.auth;

import lombok.Getter;
import lombok.Setter;
import org.stone.project.securityIntetration.service.LoginUserInfo;

/**
 * 登录用户信息操作对象
 */
@Getter
@Setter
public class AuthUserInfo  implements LoginUserInfo<String,UserInfoAuthDto> {
    public AuthUserInfo() {
    }

    public AuthUserInfo(UserInfoAuthDto userInfoAuthDto) {
        this.userInfoAuthDto = userInfoAuthDto;
    }

    private UserInfoAuthDto userInfoAuthDto;

    @Override
    public String loginUserKey() {
        return userInfoAuthDto.getId();
    }

    @Override
    public String loginPlateFormKey() {
        return null;
    }

    @Override
    public UserInfoAuthDto loginInfo() {
        return userInfoAuthDto;
    }
}
